﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="ReplayManager.aspx.cs" Inherits="SzCourt.WebSite.manager.ReplayManager" %>
<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/pager.ascx" tagname="pager" tagprefix="uc3" %>
<%@ Register src="~/control/manager/menu.ascx" tagname="menu" tagprefix="uc4" %>
<%@ Register src="~/control/partselect.ascx" tagname="partselect" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>自动回复管理 管理平台 - 深圳市中级人民法院 </title>
    <meta id="ctl00_KeyWD" content="深圳,中级,法院,诉讼,政府" name="Keywords" />
    <meta id="ctl00_desP" content="深圳市中级人民法院" name="description" />
    <link href="/images/skin2010/base.css" rel="stylesheet" type="text/css" />
    <script src="/js/sw.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="SZCOURT">
        <uc1:header ID="header1" runat="server" />
        <div class="content">
            <div class="dl">
                <uc4:menu ID="menu1" runat="server" />
            </div>
            <div class="dr">
                <uc5:partselect ID="partselect1" runat="server" />
                <!-- 用户登录 -->
                <div class="tab">
                    <div class="tt">
                        <h5>自动回复管理</h5>
                        <p class="clear"></p>
                    </div>
                    <div class="search g_dn">
                        关键字:<input type="text" value="" class="w300 txt" id="txtKeyword" runat="server" />
                        <input type="button" value="查询" class="w60 btn" onclick="search();" />
                    </div>
                    <table class="tblgrid mgn20" cellpadding="0" cellspacing="0" id="tag11">
                        <tr>
                            <th width="50">序号</th>
                            <th width="200">自动回复标题</th> 
                            <th width="500">自动回复内容</th> 
                            <th width="50">操作</th>                            
                        </tr>
                        <asp:Repeater runat="Server" ID="rptDataList">
                            <ItemTemplate>
                                <tr>
                                    <td style="text-align:center;"><%# (Container.ItemIndex+1).ToString()%></td>  
                                    <td><%#Eval("AutoReplyTitle")%></td>  
                                    <td><%#Eval("AutoReplyContent")%></td>  
                                    <td style="text-align:center;"><a href="javascript:onEdit('<%#Eval("CaseAutoReplyID")%>','<%#Eval("AutoReplyTitle")%>','<%#Eval("AutoReplyContent")%>');">修改</a></td>   
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table> 
                </div>
                <div class="page">
                    <uc3:pager ID="pager1" runat="server" />
                </div>

                <div class="mgn30 g_tc">
                    <table cellpadding="0" cellspacing="0" class="tbl g_dn" id="tbledit">
                        <tr>
                            <th colspan="2" style="text-align:center;font-weight:bold;">自动回复修改</th>
                        </tr>
                         <tr>
                                <th>标题：</th>
                                <td>
                                    <textarea cols="60" rows="1" id="txtTitle" runat="server"></textarea>
                                </td> 
                            </tr>
                        <tr>
                            <th>自动回复内容</th>
                            <td><textarea cols="60" rows="5" id="txtAutoReplyContent" runat="server"></textarea></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align:center;">
                                <input type="hidden" id="hdnCaseAutoReplyID" value="" runat="server" />
                                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="修改案由自动回复" />
                            </td>
                        </tr>
                    </table>
                    <div id="divMessages" runat="server" class="mgn20 red"></div>
                </div>
            </div>
            <div class="g_cf">
            </div>
        </div>

        <uc2:footer ID="footer1" runat="server" />
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function search() {
        window.location.href = "/manager/ReplayManager.aspx?keyword=" + encodeURIComponent(document.getElementById("txtKeyword").value);
    }

    function onEdit(id,title, txt) {
        document.getElementById("hdnCaseAutoReplyID").value = id;
        document.getElementById("txtTitle").value = title;
        document.getElementById("txtAutoReplyContent").value = txt;
        var doctbl = document.getElementById("tbledit");
        doctbl.className = "tbl";
    }
</script>